<template>
	<view class="content"
		style="background: url('../../../static/my/mybg.png') no-repeat; background-size: 100% 596rpx; background-color:#FAFAFA ;">
		<view class="title">
			<text>个人中心</text>
		</view>
		<view class="information">
			<image style="width: 128rpx; height: 128rpx;" src="../../../static/my/myimg.png" mode=""></image>
			<view class="information_admin">
				<view class="admin_name">
					{{name}}
				</view>
				<view class="admin_phone">
					手机号: {{phone}}
				</view>
			</view>
		</view>

		<view class="mylist">
			<view class="mylist_one" @click="dingdan">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/myorder.png" mode=""></image>
				<text>我的订单</text>
			</view>
			<view class="mylist_one" @click="dizhi">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/address.png" mode=""></image>
				<text>地址管理</text>
			</view>
			<view class="mylist_one" @click="shoucang">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/mylike.png" mode=""></image>
				<text>我的收藏</text>
			</view>
			<view class="mylist_one">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/register.png" mode=""></image>
				<text>身份注册</text>
			</view>
			<button open-type="feedback" class="mylist_one">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/Feedback.png" mode=""></image>
				<text>意见反馈</text>
			</button>
			<view class="mylist_one" @click="hywm">
				<image style="width: 88rpx; height: 88rpx;" src="../../../static/my/About.png" mode=""></image>
				<text>关于我们</text>
			</view>
		</view>
		<view class="toollist">
			<view class="toollist_one" v-for="(item,index) in toolslist" @click="totoolslist(item.id)">
				<view class="toollist_name">
					<image style="width: 56rpx; height: 56rpx;" :src="item.toolsimg" mode=""></image>
					<text>{{item.toolstitle}}</text>
				</view>
				<view class="toollist_go">
					<image style="width: 16rpx; height: 28rpx;" src="../../../static/my/go.png" mode=""></image>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '飞鸟',
				phone: '1293989121',
				tolist:0,
				totools:0,
				toolslist:[
					{
						id:0,
						toolsimg:'../../../static/my/myfactory.png',
						toolstitle:'我的工厂'
					},
					{
						id:1,
						toolsimg:'../../../static/my/myshop.png',
						toolstitle:'我的店铺'
					},
					{
						id:2,
						toolsimg:'../../../static/my/myschool.png',
						toolstitle:'我的校园'
					},
					
				],
			}
		},
		methods: {
			dingdan(){
				uni.navigateTo({
					url:'/pages/index/my/myorder'
				})
			},
			dizhi(){
				uni.navigateTo({
					url:'/pages/index/my/address'
				})
			},
			shoucang(){
				uni.navigateTo({
					url: 'shoucang'
				});
			},
			hywm(){
				uni.navigateTo({
					url: 'guanyu-women'
				});
			},
			totoolslist(id){
				this.totools=id
				console.log(this.totools)
				if(this.totools==0){
					uni.navigateTo({
						url:"/pages/factory/myfactory/myfactory"
					})
				}else if(this.totools==1){
					uni.navigateTo({
						url:'/pages/shop/mushop/mushop'
					})
				}else if(this.totools==2){
					uni.navigateTo({
						url:'/pages/school/myschool/myschool'
					})
				}
			}
		}
	}
</script>

<style>
	.content {
		height: 100vh;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.title {
		padding-top: 112rpx;
		display: flex;
		justify-content: center;

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
		line-height: 33rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
	}

	.information {
		width: 95%;
		display: flex;
		align-items: center;
		margin: auto;
		padding-top: 56rpx;
		padding-bottom: 32rpx;
	}

	.information_admin {
		line-height: 50rpx;
		margin-left: 40rpx;

	}

	.admin_name {

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		line-height: 56rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
	}

	.admin_phone {

		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;

		text-align: left;
		font-style: normal;
		text-transform: none;

	}

	.mylist {

		width: 95%;
		height: 368rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(139, 139, 139, 0.08);
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		margin: auto;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		
	}

	.mylist_one {
		width: 33%;
		margin: auto;
		display: flex;
		justify-content: center;
		flex-direction: column;
		background: none;
	}
	.mylist_one::after{ border: none;}

	.mylist_one image {
		margin: auto;
	}

	.mylist_one text {
		margin: auto;
		padding-top: 12rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 26rpx;
		color: #333333;
		line-height: 30rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}

	.toollist {
		width: 95%;
		height: 296rpx;
		background: #FFFFFF;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		margin: 18px auto 18rpx;
	}
	.toollist{
		
	}
	.toollist_one{
		display: flex;
		height: 33%;
		align-items: center;
		width: 100%;
		
	}
	.toollist_name{
		display: flex;
		align-items: center;
		margin-left: 32rpx;
		margin-right: auto;
	}
	.toollist_name text{
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
		line-height: 33rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
		margin-left: 12rpx;
	}
	.toollist_go{
		padding-right: 32rpx;
	}
</style>